package com.easylive.entity.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.Value;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: yudaxian
 * @DateTime: 2024/12/16 10:17
 **/
@Data
public class VideoInfoEsDTO implements Serializable {

    private static final String DATE_TIME_PATTERN = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";

    @Serial
    private static final long serialVersionUID = 2422219505115825036L;

    private String videoId;

    private String videoCover;

    private String videoName;

    private String userId;

    @Field(index = false, store = true, type = FieldType.Date, format = {}, pattern = DATE_TIME_PATTERN)
    private Date createTime;

    private String tags;

    private Integer playCount;

    private Integer danmuCount;

    private Integer collectCount;

}
